package com.situ.week1.day2;

import java.util.Scanner;

public class StudentManger {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println();
        int count = scanner.nextInt();
        Student[] students = new Student[count];
        for (int i = 0; i < students.length; i++) {
            System.out.println("请输入id：");
            int id = scanner.nextInt();
            System.out.println("请输入姓名：");
            String name = scanner.next();
            System.out.println("请输入年龄：");
            int age = scanner.nextInt();
            System.out.println("请输入性别：");
            String gender = scanner.next();
            Student student = new Student(id, name, age,gender);
            students[i] = student;
        }
        for (Student student : students) {
            System.out.println(student);
            String name = "lisi";
            if (name.equals(student.getName())) {

            }
        }
        System.out.println("");
        System.out.println("");
        System.out.println("");
        System.out.println("");
        System.out.println("");
    }
}
